ID

VAR-201302-0029


CVE

CVE-2012-4704


TITLE

3S CODESYS Gateway-Server Vulnerable to arbitrary code execution

Trust: 0.8

sources: JVNDB: JVNDB-2013-001677

DESCRIPTION

Array index error 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. 3S CODESYS Gateway-Server will have an out-of-bounds read or write error when operating the memory buffer, allowing the attacker to send a specially crafted message to the TCP/1211 port 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. There is an array index vulnerability in 3S CODESYS Gateway-Server versions before 2.3.9.27

Trust: 2.7

sources: NVD: CVE-2012-4704 // JVNDB: JVNDB-2013-001677 // CNVD: CNVD-2013-01203 // BID: 58032 // IVD: 1274f57a-2353-11e6-abef-000c29c66e3d // VULHUB: VHN-57985

IOT TAXONOMY

category:['ICS']sub_category: -

Trust: 0.8

category:['network device']sub_category:gateway

Trust: 0.1

sources: OTHER: None // IVD: 1274f57a-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01203

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.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.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.9.19

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.1

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

Trust: 1.0

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

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: 1274f57a-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01203 // JVNDB: JVNDB-2013-001677 // CNNVD: CNNVD-201302-447 // NVD: CVE-2012-4704

CVSS

SEVERITY

CVSSV2

CVSSV3

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

Trust: 1.0

NVD: CVE-2012-4704
value: HIGH

Trust: 0.8

CNNVD: CNNVD-201302-447
value: CRITICAL

Trust: 0.6

IVD: 1274f57a-2353-11e6-abef-000c29c66e3d
value: CRITICAL

Trust: 0.2

VULHUB: VHN-57985
value: HIGH

Trust: 0.1

nvd@nist.gov: CVE-2012-4704
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: 1274f57a-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-57985
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: 1274f57a-2353-11e6-abef-000c29c66e3d // VULHUB: VHN-57985 // JVNDB: JVNDB-2013-001677 // CNNVD: CNNVD-201302-447 // NVD: CVE-2012-4704

PROBLEMTYPE DATA

problemtype:CWE-20

Trust: 1.9

sources: VULHUB: VHN-57985 // JVNDB: JVNDB-2013-001677 // NVD: CVE-2012-4704

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201302-447

TYPE

Input validation

Trust: 0.8

sources: IVD: 1274f57a-2353-11e6-abef-000c29c66e3d // CNNVD: CNNVD-201302-447

CONFIGURATIONS

sources: JVNDB: JVNDB-2013-001677

PATCH

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

Trust: 0.8

title:CoDeSys 'Gateway Server' does not correctly index patches for resource access vulnerabilitiesurl:https://www.cnvd.org.cn/patchInfo/show/32062

Trust: 0.6

sources: CNVD: CNVD-2013-01203 // JVNDB: JVNDB-2013-001677

EXTERNAL IDS

db:NVDid:CVE-2012-4704

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

Trust: 0.9

db:CNVDid:CNVD-2013-01203

Trust: 0.8

db:JVNDBid:JVNDB-2013-001677

Trust: 0.8

db:SECUNIAid:52253

Trust: 0.6

db:BIDid:58032

Trust: 0.3

db:IVDid:1274F57A-2353-11E6-ABEF-000C29C66E3D

Trust: 0.2

db:OTHERid:NONE

Trust: 0.1

db:VULHUBid:VHN-57985

Trust: 0.1

sources: OTHER: None // IVD: 1274f57a-2353-11e6-abef-000c29c66e3d // CNVD: CNVD-2013-01203 // VULHUB: VHN-57985 // BID: 58032 // JVNDB: JVNDB-2013-001677 // CNNVD: CNNVD-201302-447 // NVD: CVE-2012-4704

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

Trust: 0.8

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

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-01203 // VULHUB: VHN-57985 // BID: 58032 // JVNDB: JVNDB-2013-001677 // CNNVD: CNNVD-201302-447 // NVD: CVE-2012-4704

CREDITS

Aaron Portnoy of Exodus Intelligence

Trust: 0.3

sources: BID: 58032

SOURCES

db:OTHERid: -
db:IVDid:1274f57a-2353-11e6-abef-000c29c66e3d
db:CNVDid:CNVD-2013-01203
db:VULHUBid:VHN-57985
db:BIDid:58032
db:JVNDBid:JVNDB-2013-001677
db:CNNVDid:CNNVD-201302-447
db:NVDid:CVE-2012-4704

LAST UPDATE DATE

2025-01-30T21:13:08.770000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2013-01203date:2013-02-22T00:00:00
db:VULHUBid:VHN-57985date:2013-05-21T00:00:00
db:BIDid:58032date:2015-03-19T08:12:00
db:JVNDBid:JVNDB-2013-001677date:2013-02-27T00:00:00
db:CNNVDid:CNNVD-201302-447date:2013-02-26T00:00:00
db:NVDid:CVE-2012-4704date:2024-11-21T01:43:23.230

SOURCES RELEASE DATE

db:IVDid:1274f57a-2353-11e6-abef-000c29c66e3ddate:2013-02-22T00:00:00
db:CNVDid:CNVD-2013-01203date:2013-02-22T00:00:00
db:VULHUBid:VHN-57985date:2013-02-24T00:00:00
db:BIDid:58032date:2013-02-19T00:00:00
db:JVNDBid:JVNDB-2013-001677date:2013-02-27T00:00:00
db:CNNVDid:CNNVD-201302-447date:2013-02-25T00:00:00
db:NVDid:CVE-2012-4704date:2013-02-24T11:48:21.033