ID

VAR-201302-0033


CVE

CVE-2012-4708


TITLE

CoDeSys 'Gateway Server' Stack Buffer Overflow Vulnerability

Trust: 0.8

sources: IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01218

DESCRIPTION

Stack-based buffer overflow in 3S CODESYS Gateway-Server before 2.3.9.27 allows remote attackers to execute arbitrary code via a crafted packet. CoDeSys is a powerful PLC software programming tool that supports IEC61131-3 standard IL, ST, FBD, LD, CFC, SFC six PLC programming languages. There is a stack-based buffer overflow for 3S CODESYS Gateway-Server. Allows a remote attacker to exploit a vulnerability to send a specially crafted message to the TCP port 1211 to crash the application. CoDeSys is prone to multiple remote code-execution vulnerabilities. An attacker can exploit these issues to execute arbitrary code within the context of the affected application. Failed exploit attempts will result in a denial-of-service condition. CoDeSys 2.3.9.27 is vulnerable; other versions may also be affected. Note: This BID was previously titled "CoDeSys Gateway Server Multiple Security Vulnerabilities", but the issue (described by CVE-2012-4705) has been moved to BID 59446 (CoDeSys Gateway Server CVE-2012-4705 Directory Traversal Vulnerability) to better document it. 3S-Smart Software Solutions CoDeSys is a set of PLC (Programmable Logic Controller) software programming tools from 3S-Smart Software Solutions in Germany. Runtime Toolkit is the runtime toolkit of CoDeSys

Trust: 2.7

sources: NVD: CVE-2012-4708 // JVNDB: JVNDB-2013-001681 // CNVD: CNVD-2013-01218 // BID: 58032 // IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // VULHUB: VHN-57989

IOT TAXONOMY

category:['ICS']sub_category: -

Trust: 0.8

category:['network device']sub_category:gateway

Trust: 0.1

sources: OTHER: None // IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01218

AFFECTED PRODUCTS

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.5

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.18

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.8.1

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.8.0

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.1

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.3

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.4

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.8.2

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.2

Trust: 1.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.5.3

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.5.2

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.7.0

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.6.0

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:lteversion:2.3.9.20

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.5.1

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9

Trust: 1.0

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.19

Trust: 1.0

vendor:3s smartmodel:codesys gateway serverscope:ltversion:2.3.9.27

Trust: 0.8

vendor:3smodel:smart software solutions codesysscope:eqversion:-2.x

Trust: 0.6

vendor:3smodel:smart software solutions codesys gateway serverscope:eqversion:-2.x

Trust: 0.6

vendor:3smodel:codesys gateway-serverscope:eqversion:2.3.9.20

Trust: 0.6

vendor:codesys gateway servermodel: - scope:eqversion:2.3.5.1

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.5.2

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.5.3

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.6.0

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.7.0

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.8.0

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.8.1

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.8.2

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.1

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.2

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.3

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.4

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.5

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.18

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:2.3.9.19

Trust: 0.2

vendor:codesys gateway servermodel: - scope:eqversion:*

Trust: 0.2

sources: IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01218 // JVNDB: JVNDB-2013-001681 // CNNVD: CNNVD-201302-451 // NVD: CVE-2012-4708

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2012-4708
value: HIGH

Trust: 1.0

NVD: CVE-2012-4708
value: HIGH

Trust: 0.8

CNNVD: CNNVD-201302-451
value: CRITICAL

Trust: 0.6

IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d
value: CRITICAL

Trust: 0.2

VULHUB: VHN-57989
value: HIGH

Trust: 0.1

nvd@nist.gov: CVE-2012-4708
severity: HIGH
baseScore: 10.0
vectorString: AV:N/AC:L/AU:N/C:C/I:C/A:C
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 10.0
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d
severity: HIGH
baseScore: 10.0
vectorString: AV:N/AC:L/AU:N/C:C/I:C/A:C
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 10.0
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.9 [IVD]

Trust: 0.2

VULHUB: VHN-57989
severity: HIGH
baseScore: 10.0
vectorString: AV:N/AC:L/AU:N/C:C/I:C/A:C
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 10.0
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // VULHUB: VHN-57989 // JVNDB: JVNDB-2013-001681 // CNNVD: CNNVD-201302-451 // NVD: CVE-2012-4708

PROBLEMTYPE DATA

problemtype:CWE-119

Trust: 1.9

sources: VULHUB: VHN-57989 // JVNDB: JVNDB-2013-001681 // NVD: CVE-2012-4708

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201302-451

TYPE

Buffer overflow

Trust: 0.8

sources: IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // CNNVD: CNNVD-201302-451

CONFIGURATIONS

sources: JVNDB: JVNDB-2013-001681

PATCH

title:Top Pageurl:http://www.3s-software.com/

Trust: 0.8

title:CoDeSys 'Gateway Server' Stack Buffer Overflow Vulnerability Patchurl:https://www.cnvd.org.cn/patchInfo/show/32066

Trust: 0.6

sources: CNVD: CNVD-2013-01218 // JVNDB: JVNDB-2013-001681

EXTERNAL IDS

db:NVDid:CVE-2012-4708

Trust: 3.7

db:ICS CERTid:ICSA-13-050-01

Trust: 2.0

db:ICS CERTid:ICSA-13-050-01A

Trust: 1.1

db:CNNVDid:CNNVD-201302-451

Trust: 0.9

db:CNVDid:CNVD-2013-01218

Trust: 0.8

db:JVNDBid:JVNDB-2013-001681

Trust: 0.8

db:SECUNIAid:52253

Trust: 0.6

db:BIDid:58032

Trust: 0.3

db:IVDid:12A2B3AC-2353-11E6-ABEF-000C29C66E3D

Trust: 0.2

db:OTHERid:NONE

Trust: 0.1

db:VULHUBid:VHN-57989

Trust: 0.1

sources: OTHER: None // IVD: 12a2b3ac-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01218 // VULHUB: VHN-57989 // BID: 58032 // JVNDB: JVNDB-2013-001681 // CNNVD: CNNVD-201302-451 // NVD: CVE-2012-4708

REFERENCES

url:http://ics-cert.us-cert.gov/pdf/icsa-13-050-01-a.pdf

Trust: 1.4

url:http://ics-cert.us-cert.gov/advisories/icsa-13-050-01a

Trust: 1.1

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2012-4708

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2012-4708

Trust: 0.8

url:http://ics-cert.us-cert.gov/pdf/icsa-13-050-01.pdf

Trust: 0.6

url:http://secunia.com/advisories/52253

Trust: 0.6

url:http://www.3s-software.com/

Trust: 0.3

url:https://ieeexplore.ieee.org/abstract/document/10769424

Trust: 0.1

sources: OTHER: None // CNVD: CNVD-2013-01218 // VULHUB: VHN-57989 // BID: 58032 // JVNDB: JVNDB-2013-001681 // CNNVD: CNNVD-201302-451 // NVD: CVE-2012-4708

CREDITS

Aaron Portnoy of Exodus Intelligence

Trust: 0.3

sources: BID: 58032

SOURCES

db:OTHERid: -
db:IVDid:12a2b3ac-2353-11e6-abef-000c29c66e3d
db:CNVDid:CNVD-2013-01218
db:VULHUBid:VHN-57989
db:BIDid:58032
db:JVNDBid:JVNDB-2013-001681
db:CNNVDid:CNNVD-201302-451
db:NVDid:CVE-2012-4708

LAST UPDATE DATE

2025-01-30T20:23:04.624000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2013-01218date:2013-02-22T00:00:00
db:VULHUBid:VHN-57989date:2013-05-21T00:00:00
db:BIDid:58032date:2015-03-19T08:12:00
db:JVNDBid:JVNDB-2013-001681date:2013-02-27T00:00:00
db:CNNVDid:CNNVD-201302-451date:2013-02-26T00:00:00
db:NVDid:CVE-2012-4708date:2024-11-21T01:43:23.663

SOURCES RELEASE DATE

db:IVDid:12a2b3ac-2353-11e6-abef-000c29c66e3ddate:2013-02-22T00:00:00
db:CNVDid:CNVD-2013-01218date:2013-02-22T00:00:00
db:VULHUBid:VHN-57989date:2013-02-24T00:00:00
db:BIDid:58032date:2013-02-19T00:00:00
db:JVNDBid:JVNDB-2013-001681date:2013-02-27T00:00:00
db:CNNVDid:CNNVD-201302-451date:2013-02-26T00:00:00
db:NVDid:CVE-2012-4708date:2013-02-24T11:48:21.190