FreeBSD php5-posix-5.2.6 has known vulnerabilities error – Stop in /usr/ports/sysutils/php5-posix.

Q. When I run make install clean for php5-extensions port, I’m dumped with the following error:

===> php5-posix-5.2.6 has known vulnerabilities:
=> php — input validation error in posix_access function.
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/sysutils/php5-posix.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.

How do I fix this error?

A. Try upgrading your port tree by typing the following commands:
# portsnap fetch update
# portaudit -Fda

If you still see the error, temporarily disable error by adding following code to /etc/make.conf file:

# get around php5-posix error 
.if !empty(.CURDIR:M*sysutils/php5-posix*)

Save and close the file. Try to rebuild port again:
# cd /usr/ports/lang/php5-extensions
# make install clean

Another option is build /usr/ports/lang/php5-extensions port without looking at VULNERABILITIES:

According to FreeBSD security team:

It should be noted that this vulnerability is not considered to be serious by the FreeBSD Security Team, since safe_mode and open_basedir are insecure by design and should not be relied upon.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts