ID

VAR-201302-0031


CVE

CVE-2012-4706


TITLE

CoDeSys 'Gateway Server' Heap Buffer Overflow Vulnerability

Trust: 0.8

sources: IVD: 1268e71c-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01213

DESCRIPTION

Integer signedness error in 3S CODESYS Gateway-Server before 2.3.9.27 allows remote attackers to cause a denial of service via a crafted packet that triggers a heap-based buffer overflow. CoDeSys is a powerful PLC software programming tool that supports IEC61131-3 standard IL, ST, FBD, LD, CFC, SFC six PLC programming languages. 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. There is an unsigned integer vulnerability in 3S CODESYS Gateway-Server versions before 2.3.9.27

Trust: 2.7

sources: NVD: CVE-2012-4706 // JVNDB: JVNDB-2013-001679 // CNVD: CNVD-2013-01213 // BID: 58032 // IVD: 1268e71c-2353-11e6-abef-000c29c66e3d // VULHUB: VHN-57987

IOT TAXONOMY

category:['ICS']sub_category: -

Trust: 0.8

sources: IVD: 1268e71c-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01213

AFFECTED PRODUCTS

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

Trust: 1.6

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

Trust: 1.6

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

Trust: 1.6

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

Trust: 1.6

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

Trust: 1.6

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

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

Trust: 1.6

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

Trust: 1.6

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

Trust: 1.6

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

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: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: 1268e71c-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01213 // JVNDB: JVNDB-2013-001679 // CNNVD: CNNVD-201302-449 // NVD: CVE-2012-4706

CVSS

SEVERITY

CVSSV2

CVSSV3

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

Trust: 1.0

NVD: CVE-2012-4706
value: HIGH

Trust: 0.8

CNNVD: CNNVD-201302-449
value: HIGH

Trust: 0.6

IVD: 1268e71c-2353-11e6-abef-000c29c66e3d
value: HIGH

Trust: 0.2

VULHUB: VHN-57987
value: HIGH

Trust: 0.1

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

Trust: 1.8

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

Trust: 0.2

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

Trust: 0.1

sources: IVD: 1268e71c-2353-11e6-abef-000c29c66e3d // VULHUB: VHN-57987 // JVNDB: JVNDB-2013-001679 // CNNVD: CNNVD-201302-449 // NVD: CVE-2012-4706

PROBLEMTYPE DATA

problemtype:CWE-189

Trust: 1.9

sources: VULHUB: VHN-57987 // JVNDB: JVNDB-2013-001679 // NVD: CVE-2012-4706

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201302-449

TYPE

digital error

Trust: 0.6

sources: CNNVD: CNNVD-201302-449

CONFIGURATIONS

sources: JVNDB: JVNDB-2013-001679

PATCH

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

Trust: 0.8

title:CoDeSys 'Gateway Server' heap buffer overflow vulnerability patchurl:https://www.cnvd.org.cn/patchInfo/show/32064

Trust: 0.6

sources: CNVD: CNVD-2013-01213 // JVNDB: JVNDB-2013-001679

EXTERNAL IDS

db:NVDid:CVE-2012-4706

Trust: 3.6

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

Trust: 2.0

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

Trust: 1.1

db:CNNVDid:CNNVD-201302-449

Trust: 0.9

db:CNVDid:CNVD-2013-01213

Trust: 0.8

db:JVNDBid:JVNDB-2013-001679

Trust: 0.8

db:SECUNIAid:52253

Trust: 0.6

db:BIDid:58032

Trust: 0.3

db:IVDid:1268E71C-2353-11E6-ABEF-000C29C66E3D

Trust: 0.2

db:VULHUBid:VHN-57987

Trust: 0.1

sources: IVD: 1268e71c-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01213 // VULHUB: VHN-57987 // BID: 58032 // JVNDB: JVNDB-2013-001679 // CNNVD: CNNVD-201302-449 // NVD: CVE-2012-4706

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-4706

Trust: 0.8

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

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

sources: CNVD: CNVD-2013-01213 // VULHUB: VHN-57987 // BID: 58032 // JVNDB: JVNDB-2013-001679 // CNNVD: CNNVD-201302-449 // NVD: CVE-2012-4706

CREDITS

Aaron Portnoy of Exodus Intelligence

Trust: 0.3

sources: BID: 58032

SOURCES

db:IVDid:1268e71c-2353-11e6-abef-000c29c66e3d
db:CNVDid:CNVD-2013-01213
db:VULHUBid:VHN-57987
db:BIDid:58032
db:JVNDBid:JVNDB-2013-001679
db:CNNVDid:CNNVD-201302-449
db:NVDid:CVE-2012-4706

LAST UPDATE DATE

2025-04-11T20:03:06.476000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2013-01213date:2013-02-22T00:00:00
db:VULHUBid:VHN-57987date:2013-05-21T00:00:00
db:BIDid:58032date:2015-03-19T08:12:00
db:JVNDBid:JVNDB-2013-001679date:2013-02-27T00:00:00
db:CNNVDid:CNNVD-201302-449date:2013-02-26T00:00:00
db:NVDid:CVE-2012-4706date:2025-04-11T00:51:21.963

SOURCES RELEASE DATE

db:IVDid:1268e71c-2353-11e6-abef-000c29c66e3ddate:2013-02-22T00:00:00
db:CNVDid:CNVD-2013-01213date:2013-02-22T00:00:00
db:VULHUBid:VHN-57987date:2013-02-24T00:00:00
db:BIDid:58032date:2013-02-19T00:00:00
db:JVNDBid:JVNDB-2013-001679date:2013-02-27T00:00:00
db:CNNVDid:CNNVD-201302-449date:2013-02-26T00:00:00
db:NVDid:CVE-2012-4706date:2013-02-24T11:48:21.110