3S CoDeSys Relative Path Traversal

CVE-2012-6069

Assigned byThe organization (CNA) that assigned this CVE ID and published the record, usually the vendor.
ICS-CERT (opens in new tab)
Published
Last modified
NVD status
Modified
CVSS 2.010High

Description

The CoDeSys Runtime Toolkit’s file transfer functionality does not
perform input validation, which allows an attacker to access files and
directories outside the intended scope. This may allow an attacker to
upload and download any file on the device. This could allow the
attacker to affect the availability, integrity, and confidentiality of
the device.

Exploitation

Whether attackers are exploiting this vulnerability, and how likely they are to try in the next 30 days.

FIRST Exploit Prediction Scoring System (EPSS)About EPSS (opens in new tab)

FIRST's estimate of the chance attackers try to exploit this vulnerability in the next 30 days.

Probability of exploitationIt predicts attempts, not success, and is updated daily.
2.637%
Compared with other CVEs
At or above 85.928% of scored CVEs
Scored

Affected products

The products and versions with the vulnerability.

Listed by CNA

The products and versions affected, according to the organization that published this CVE.

VendorProductAffected versions
3S-Smart Software SolutionsCODESYS Control Runtime embedded
  • < 2.3.2.8
3S-Smart Software SolutionsCODESYS Control Runtime full
  • < 2.4.7.40
3S-Smart Software SolutionsCODESYS Control RTE
  • < 2.3.7.17
FestoCECX-X-C1 Modular Master Controller with CoDeSys
  • All versions
FestoCECX-X-M1 Modular Controller with CoDeSys and SoftMotion
  • All versions
3S-Smart Software SolutionsCoDeSys

Not affected: 3.X

Listed by NVD

The CPE names vulnerability scanners match, including products that bundle the affected software.

VendorProductTypeVulnerable versions
3s-softwarecodesys runtime systemApplication
  • 2.4.0
  • 2.3.9.8
  • 2.3.9.35
  • 2.3.9.36
  • 2.3.9.37

How to fix the vulnerability, or reduce the risk until you can.

Solutions

From ICS-CERT, which published this CVE.

CoDeSys recommends upgrading to the latest version, which is Version 3. It can be downloaded here https://store.codesys.com/engineering/codesys.html .3S released a patch which implements a password for authentication to the device.

The patch can be downloaded from the CoDeSys Download Center http://www.codesys.com/download.html .

CoDeSys Version 3.X is not affected by these vulnerabilities.

Workarounds

From ICS-CERT, which published this CVE.

3S also recommends the usage of standard security methods like firewalls
or virtual private network (VPN) access to prevent unauthorized access
to the controller.

Severity

How serious the vulnerability is if exploited, scored from 0 to 10 with the CVSS standard (opens in new tab).

  • 10 HighCVSS 2.0 · PrimaryPrimary scores are NVD's own. Secondary scores come from the organization that published the CVE, or from CISA. · Scored by NVD (opens in new tab)
    Attack vectorWhere the attacker has to be. Network is the widest: anywhere on the Internet.
    Network
    Attack complexityWhether the attack depends on conditions the attacker doesn't control.
    Low
    AuthenticationHow many times the attacker has to sign in.
    None
    ConfidentialityHow much data the attacker can read.
    Complete
    IntegrityHow much data the attacker can change.
    Complete
    AvailabilityHow much the attacker can disrupt the system or service.
    Complete

    AV:N/AC:L/Au:N/C:C/I:C/A:CView in NVD's calculator (opens in new tab)

  • 10 CriticalCVSS 3.1 · SecondaryPrimary scores are NVD's own. Secondary scores come from the organization that published the CVE, or from CISA. · Scored by ICS-CERT (opens in new tab)
    Attack vectorWhere the attacker has to be. Network is the widest: anywhere on the Internet.
    Network
    Attack complexityWhether the attack depends on conditions the attacker doesn't control.
    Low
    Privileges requiredThe access the attacker needs before attacking.
    None
    User interactionWhether someone other than the attacker has to do something, like open a link.
    None
    ScopeWhether the attack can reach beyond the vulnerable component.
    Changed
    ConfidentialityHow much data the attacker can read.
    High
    IntegrityHow much data the attacker can change.
    High
    AvailabilityHow much the attacker can disrupt the system or service.
    High

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HView in FIRST's calculator (opens in new tab)

Weaknesses and attack patterns

The type of bug behind the vulnerability, and how attackers exploit that type.

  • Relative Path Traversal · CWE-23 (opens in new tab)

    The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.

    Abstraction
    Base
    Mapping guidance
    Allowed
    Part of
  • Improper Limitation of a Pathname to a Restricted Directory · CWE-22 (opens in new tab)

    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.

    Likelihood of exploitHow likely MITRE rates attacks on this type of weakness, in general rather than for this vulnerability.
    High
    Abstraction
    Base
    Mapping guidance
    Allowed with review
    Part of

References

Advisories, patches, exploits and more about this vulnerability.

This product uses the NVD API but is not endorsed or certified by the NVD (opens in new tab). CVE records from the CVE List (opens in new tab), weakness types from MITRE's CWE (opens in new tab)™ and attack patterns from its CAPEC (opens in new tab)™ are © The MITRE Corporation, used under the CVE (opens in new tab), CWE (opens in new tab) and CAPEC (opens in new tab) terms of use. Known exploited vulnerabilities and SSVC assessments are from CISA. Exploit predictions are from FIRST's EPSS (opens in new tab). About this data