ABB M2M Gateway Integer Overflow in embedded Git (CVE-2022-23521)

critical Tenable OT Security Plugin ID 503239

Synopsis

The remote OT asset is affected by a vulnerability.

Description

Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index.
Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade.
There are no known workarounds for this issue.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.

Solution

Refer to the vendor advisory.

See Also

https://www.cisa.gov/news-events/ics-advisories/icsa-25-105-08

http://www.nessus.org/u?310ae51a

http://www.nessus.org/u?8a3ecf4d

https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89

https://security.gentoo.org/glsa/202312-15

Plugin Details

Severity: Critical

ID: 503239

Version: 1.1

Type: remote

Family: Tenable.ot

Published: 5/27/2025

Updated: 5/27/2025

Supported Sensors: Tenable OT Security

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: cpe:/o:abb:sw_firmware, cpe:/o:abb:arm600_firmware

Required KB Items: Tenable.ot/ABB

Exploit Ease: No known exploits are available

Patch Publication Date: 1/17/2023

Vulnerability Publication Date: 1/17/2023

Reference Information

CVE: CVE-2022-23521

CWE: 190

ICSA: 25-105-08