Anolis OS update for ruby:2.5 module



| Updated: 2025-03-29
Risk High
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2021-31799
CVE-2021-31810
CVE-2021-32066
CWE-ID CWE-77
CWE-200
CWE-295
Exploitation vector Network
Public exploit N/A
Vulnerable software
Anolis OS
Operating systems & Components / Operating system

rubygems-devel
Operating systems & Components / Operating system package or component

rubygems
Operating systems & Components / Operating system package or component

rubygem-xmlrpc
Operating systems & Components / Operating system package or component

rubygem-test-unit
Operating systems & Components / Operating system package or component

rubygem-rdoc
Operating systems & Components / Operating system package or component

rubygem-rake
Operating systems & Components / Operating system package or component

rubygem-power_assert
Operating systems & Components / Operating system package or component

rubygem-net-telnet
Operating systems & Components / Operating system package or component

rubygem-minitest
Operating systems & Components / Operating system package or component

rubygem-did_you_mean
Operating systems & Components / Operating system package or component

ruby-irb
Operating systems & Components / Operating system package or component

ruby-doc
Operating systems & Components / Operating system package or component

rubygem-psych
Operating systems & Components / Operating system package or component

rubygem-openssl
Operating systems & Components / Operating system package or component

rubygem-json
Operating systems & Components / Operating system package or component

rubygem-io-console
Operating systems & Components / Operating system package or component

rubygem-bigdecimal
Operating systems & Components / Operating system package or component

ruby-libs
Operating systems & Components / Operating system package or component

ruby-devel
Operating systems & Components / Operating system package or component

ruby
Operating systems & Components / Operating system package or component

rubygem-pg-doc
Operating systems & Components / Operating system package or component

rubygem-mysql2-doc
Operating systems & Components / Operating system package or component

rubygem-mongo-doc
Operating systems & Components / Operating system package or component

rubygem-mongo
Operating systems & Components / Operating system package or component

rubygem-bundler-doc
Operating systems & Components / Operating system package or component

rubygem-bundler
Operating systems & Components / Operating system package or component

rubygem-bson-doc
Operating systems & Components / Operating system package or component

rubygem-pg
Operating systems & Components / Operating system package or component

rubygem-mysql2
Operating systems & Components / Operating system package or component

rubygem-bson
Operating systems & Components / Operating system package or component

rubygem-abrt-doc
Operating systems & Components / Operating system package or component

rubygem-abrt
Operating systems & Components / Operating system package or component

Vendor OpenAnolis

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Command Injection

EUVDB-ID: #VU52796

Risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2021-31799

CWE-ID: CWE-77 - Command injection

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary commands on the target system.

The vulnerability exists due to improper input validation. A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install updates from vendor's repository.

Vulnerable software versions

Anolis OS: 8

rubygems-devel: before 2.7.6.3-109.0.1

rubygems: before 2.7.6.3-109.0.1

rubygem-xmlrpc: before 0.3.0-109.0.1

rubygem-test-unit: before 3.2.7-109.0.1

rubygem-rdoc: before 6.0.1.1-109.0.1

rubygem-rake: before 12.3.3-109.0.1

rubygem-power_assert: before 1.1.1-109.0.1

rubygem-net-telnet: before 0.1.1-109.0.1

rubygem-minitest: before 5.10.3-109.0.1

rubygem-did_you_mean: before 1.2.0-109.0.1

ruby-irb: before 2.5.9-109.0.1

ruby-doc: before 2.5.9-109.0.1

rubygem-psych: before 3.0.2-109.0.1

rubygem-openssl: before 2.1.2-109.0.1

rubygem-json: before 2.1.0-109.0.1

rubygem-io-console: before 0.4.6-109.0.1

rubygem-bigdecimal: before 1.3.4-109.0.1

ruby-libs: before 2.5.9-109.0.1

ruby-devel: before 2.5.9-109.0.1

ruby: before 2.5.9-109.0.1

rubygem-pg-doc: before 1.0.0-2.0.1

rubygem-mysql2-doc: before 0.4.10-4

rubygem-mongo-doc: before 2.5.1-2

rubygem-mongo: before 2.5.1-2

rubygem-bundler-doc: before 1.16.1-4

rubygem-bundler: before 1.16.1-4

rubygem-bson-doc: before 4.3.0-2

rubygem-pg: before 1.0.0-2.0.1

rubygem-mysql2: before 0.4.10-4

rubygem-bson: before 4.3.0-2

rubygem-abrt-doc: before 0.3.0-4

rubygem-abrt: before 0.3.0-4

CPE2.3 External links

https://anas.openanolis.cn/errata/detail/ANSA-2022:0020


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Information disclosure

EUVDB-ID: #VU55488

Risk: Medium

CVSSv4.0: 4.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2021-31810

CWE-ID: CWE-200 - Information exposure

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists within Net::FTP in Ruby when processing PASV responses. A remote attacker can trick the victim to connect to a malicious FTP server and trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).

Mitigation

Install updates from vendor's repository.

Vulnerable software versions

Anolis OS: 8

rubygems-devel: before 2.7.6.3-109.0.1

rubygems: before 2.7.6.3-109.0.1

rubygem-xmlrpc: before 0.3.0-109.0.1

rubygem-test-unit: before 3.2.7-109.0.1

rubygem-rdoc: before 6.0.1.1-109.0.1

rubygem-rake: before 12.3.3-109.0.1

rubygem-power_assert: before 1.1.1-109.0.1

rubygem-net-telnet: before 0.1.1-109.0.1

rubygem-minitest: before 5.10.3-109.0.1

rubygem-did_you_mean: before 1.2.0-109.0.1

ruby-irb: before 2.5.9-109.0.1

ruby-doc: before 2.5.9-109.0.1

rubygem-psych: before 3.0.2-109.0.1

rubygem-openssl: before 2.1.2-109.0.1

rubygem-json: before 2.1.0-109.0.1

rubygem-io-console: before 0.4.6-109.0.1

rubygem-bigdecimal: before 1.3.4-109.0.1

ruby-libs: before 2.5.9-109.0.1

ruby-devel: before 2.5.9-109.0.1

ruby: before 2.5.9-109.0.1

rubygem-pg-doc: before 1.0.0-2.0.1

rubygem-mysql2-doc: before 0.4.10-4

rubygem-mongo-doc: before 2.5.1-2

rubygem-mongo: before 2.5.1-2

rubygem-bundler-doc: before 1.16.1-4

rubygem-bundler: before 1.16.1-4

rubygem-bson-doc: before 4.3.0-2

rubygem-pg: before 1.0.0-2.0.1

rubygem-mysql2: before 0.4.10-4

rubygem-bson: before 4.3.0-2

rubygem-abrt-doc: before 0.3.0-4

rubygem-abrt: before 0.3.0-4

CPE2.3 External links

https://anas.openanolis.cn/errata/detail/ANSA-2022:0020


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Improper Certificate Validation

EUVDB-ID: #VU55489

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2021-32066

CWE-ID: CWE-295 - Improper Certificate Validation

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists in Net::IMAP in Ruby, due to the gem does not raise an exception when StartTLS fails with an an unknown response. A remote attacker can perform a man-in-the-middle (MitM) attack.

Mitigation

Install updates from vendor's repository.

Vulnerable software versions

Anolis OS: 8

rubygems-devel: before 2.7.6.3-109.0.1

rubygems: before 2.7.6.3-109.0.1

rubygem-xmlrpc: before 0.3.0-109.0.1

rubygem-test-unit: before 3.2.7-109.0.1

rubygem-rdoc: before 6.0.1.1-109.0.1

rubygem-rake: before 12.3.3-109.0.1

rubygem-power_assert: before 1.1.1-109.0.1

rubygem-net-telnet: before 0.1.1-109.0.1

rubygem-minitest: before 5.10.3-109.0.1

rubygem-did_you_mean: before 1.2.0-109.0.1

ruby-irb: before 2.5.9-109.0.1

ruby-doc: before 2.5.9-109.0.1

rubygem-psych: before 3.0.2-109.0.1

rubygem-openssl: before 2.1.2-109.0.1

rubygem-json: before 2.1.0-109.0.1

rubygem-io-console: before 0.4.6-109.0.1

rubygem-bigdecimal: before 1.3.4-109.0.1

ruby-libs: before 2.5.9-109.0.1

ruby-devel: before 2.5.9-109.0.1

ruby: before 2.5.9-109.0.1

rubygem-pg-doc: before 1.0.0-2.0.1

rubygem-mysql2-doc: before 0.4.10-4

rubygem-mongo-doc: before 2.5.1-2

rubygem-mongo: before 2.5.1-2

rubygem-bundler-doc: before 1.16.1-4

rubygem-bundler: before 1.16.1-4

rubygem-bson-doc: before 4.3.0-2

rubygem-pg: before 1.0.0-2.0.1

rubygem-mysql2: before 0.4.10-4

rubygem-bson: before 4.3.0-2

rubygem-abrt-doc: before 0.3.0-4

rubygem-abrt: before 0.3.0-4

CPE2.3 External links

https://anas.openanolis.cn/errata/detail/ANSA-2022:0020


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###