{"schemaVersion":3,"id":"CVE-2012-4705","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Directory traversal vulnerability in 3S CODESYS Gateway-Server before 2.3.9.27 allows remote attackers to execute arbitrary code via vectors involving a crafted pathname.","dates":{"published":"2013-02-24T11:00:00.000Z","modified":"2024-08-06T20:42:55.138Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.6487,"percentile":0.99248,"severity":"critical","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.6487},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.65668,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.65668,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.65668,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.65668,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.6487,"percentile":0.99248}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.6487,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.6487,"percentile":0.99248}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"41712","name":"CADA 3S CoDeSys Gateway Server - Directory Traversal (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/41712","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"windows","file":"exploits/windows/local/41712.rb","codes":["CVE-2012-4705","OSVDB-90368"]},"metasploit":null},{"id":"MSF_EXPLOIT_WINDOWS_SCADA_CODESYS_GATEWAY_SERVER_TRAVERSAL","name":"SCADA 3S CoDeSys Gateway Server Directory Traversal","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/windows/scada/codesys_gateway_server_traversal.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/windows/scada/codesys_gateway_server_traversal","rank":"600","rankName":"excellent","postAuth":false,"check":false,"stability":["crash-safe"],"sideEffects":[],"reliability":[]}}],"exploitCount":2,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"3s-software","product":"codesys_gateway-server","name":"codesys gateway-server","label":"codesys_gateway-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.3.9.20","noFixRecorded":false,"fixedIn":null},{"text":"2.3.5.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.5.2","noFixRecorded":false,"fixedIn":null},{"text":"2.3.5.3","noFixRecorded":false,"fixedIn":null},{"text":"2.3.6.0","noFixRecorded":false,"fixedIn":null},{"text":"2.3.7.0","noFixRecorded":false,"fixedIn":null},{"text":"2.3.8.0","noFixRecorded":false,"fixedIn":null},{"text":"2.3.8.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.8.2","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.2","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.3","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.4","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.5","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.18","noFixRecorded":false,"fixedIn":null},{"text":"2.3.9.19","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.3.9.20 | 2.3.5.1 | 2.3.5.2 | 2.3.5.3 | 2.3.6.0 | 2.3.7.0 | 2.3.8.0 | 2.3.8.1 | 2.3.8.2 | 2.3.9 | 2.3.9.1 | 2.3.9.2 | 2.3.9.3 | 2.3.9.4 | 2.3.9.5 | 2.3.9.18 | 2.3.9.19","eol":null,"hubHref":"/vendor/3s-software/codesys_gateway-server"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://ics-cert.us-cert.gov/advisories/ICSA-13-050-01A","label":"ics-cert.us-cert.gov/advisories/ICSA-13-050-01A","hostname":"ics-cert.us-cert.gov","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2013-02-24T11:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T20:42:55.138Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T15:32:17.035Z","stale":false,"partial":false}}