REDHAT-BUG-2313828: High severity libreswan vulnerability

Published Sep 20, 2024
·
Updated

A security issue in NM-libreswan, where we fail to sanitize the VPN configuration from a local unprivileged user and pass it directly to Libreswan.

The libreswan connection configuration is simple key=value format, but we fail to check for or escape special characters, including newlines, which makes it possible for the user to trick us to treat values as key.

Unfortunately, there's one particular key that takes an executable command as an argument: leftupdown (couldn't find more in ipsec.conf(5)). We normally use it to specify the NM-libreswan callback, that would pass L3 configuration back to NM. It can be abused to execute arbitrary code.

Affected Software

2 affected components
libreswan Libreswan
NM-libreswan NM-libreswan

Event History

Sep 20, 2024
Data Sourced
via Red Hat·06:30 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2313828?

The severity of REDHAT-BUG-2313828 is considered high due to the potential for local unprivileged users to manipulate VPN configurations.

2

How do I fix REDHAT-BUG-2313828?

To fix REDHAT-BUG-2313828, update your NM-libreswan and Libreswan to the latest patched versions provided by Red Hat.

3

What systems are affected by REDHAT-BUG-2313828?

Systems running NM-libreswan and Libreswan are affected by REDHAT-BUG-2313828.

4

What kind of attacks can exploit REDHAT-BUG-2313828?

Exploitation of REDHAT-BUG-2313828 could allow a local unprivileged user to execute arbitrary code via improperly sanitized VPN configurations.

5

Is there a workaround for REDHAT-BUG-2313828?

Currently, the recommended action for REDHAT-BUG-2313828 is to apply the security updates as there are no reliable workarounds available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203